package io.work1;

import java.io.FileOutputStream;
import java.io.OutputStreamWriter;
import java.nio.charset.StandardCharsets;

public class test03 {
    public static void main(String[] args) throws Exception {
        FileOutputStream fos=new FileOutputStream("osw.txt");
        OutputStreamWriter osw=new OutputStreamWriter(fos, StandardCharsets.UTF_8);
        osw.write("从前初始这世间");
        osw.write("万般流连");
        System.out.println("写出完毕");
        osw.close();

    }
}
